//
//  BaseAllViewController.h
//  EducationAdminClient
//http://192.168.6.125:8080/mj_oto_edus_auto_new/model_ajaxList.do?&tableId=9547&pageId=6106&mainTableId=&mainPageId=&mainId=&AFM_18_2_andOr=0&AFM_18_strCond_pld=&AFM_18_strVal_pld=&AFM_19_2_andOr=0&AFM_19_strCond_pld=&AFM_19_strVal_pld=&_time_stamp_=1465195029027&limit=50_flow&start=0
//  Created by kwsdzjx on 15/11/25.
//  Copyright © 2015年 周佳兴. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "NetRequest.h"
#import "Masonry.h"
#import "EducationAdminClient_URL.h"

#import "UIColor+CL.h"
#import "MJRefresh.h"
#import "UIView+Toast.h"
@interface BaseAllViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout,UIGestureRecognizerDelegate,UIAlertViewDelegate>


#define STYLE0 @"0"
#define STYLE1 @"1"

#define KWIDTH ([UIScreen mainScreen].bounds.size.width) //屏幕宽度
#define KHEIGHT ([UIScreen mainScreen].bounds.size.height) //屏幕高度
#define COMFIRM         @"confiirm"         // 确认下课按钮键
#define HOMEWORK        @"homework"         // 作业按钮键
#define QUEREN          @"教学日志添加手机1"           // 判断是否是确认下课
#define ZUOYE           @"作业"              // 潘达UN是否是作业按钮
#define BUTTONNAME      @"确认下课"           // 按钮合一后的名字
#define COMPOSESIGNKEYSTRING     @"COMPOSESIGNKEYSTRING"      // 按钮合一标记key值


@property (strong, nonatomic)UITableView        *tbView;
@property (strong, nonatomic)UICollectionView   *collectionView;

@property (strong, nonatomic)NSMutableArray     *dataArr;
@property (strong, nonatomic)UIView             *cusTabView;
@property (strong, nonatomic)UILabel            *requeatResultLabel;
@property (assign, nonatomic)BOOL               selecCell;
@property (strong, nonatomic)UILabel            *titleLabelSet;
@property (strong, nonatomic)NSString           *programaUrl;
@property (assign, nonatomic)BOOL               isNeedReturn;

#warning this is the public net request result label
-(void)showLabelWithText:(NSString *)text;
-(void)setTitleLabelText:(NSString *)titleLabel1;

-(void)setProgramaUrl:(NSString *)programaUrl;

#pragma mark - see net state
-(void)netNotifation:(NSNotification *)noti;

-(void)createLeftNavBar;
- (void)sessionIsOverTime:(NSString *)dataStr;//登录超时屌的方法
- (CGRect)calculateTextLenth:(NSArray *)titleArray andTitleFont:(NSInteger)titleFont;//计算标题选项卡总长度
- (CGSize)calculateOneTextLenth:(NSString *)title andTitleFont:(NSInteger)titleFont;//计算标题选项卡单个长度

- (void) removeToastWithView:(NSTimer *)timer;
- (void) addToastWithString:(NSString *)string inView:(UIView *)view andReturn:(BOOL)needReturn;
- (void) addToastWithString:(NSString *)string inView:(UIView *)view;

@end
